package com.hsnn.medstgmini.pro.base.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name = "base_shortage")
public class BaseShortage implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "shortage_id")
	private String shortageId;
	
	@Column(name = "qualityspec_code")
	private String qualityspecCode;
	
	@Column(name = "is_longterm")
	private Integer isLongterm;//是否长期缺货0短期1长期
	
	@Column(name = "start_datetime")
	private Date startDatetime;//短期缺货开始日期
	
	@Column(name = "end_datetime")
	private Date endDatetime;//短期缺货结束日期
	
	@Column(name = "shortage_reason")
	private String shortageReason;//缺货理由
	
	@Column(name = "submit_datetime")
	private Date submitDatetime;//申报日期
	
	@Column(name = "submit_status")
	private Integer submitStatus;//申报状态0其他1已申报2已撤销
	
	@Column(name = "cancel_remark")
	private String cancelRemark;//撤销备注
	
	@Column(name = "hosp_code")
	private String hospCode;
	
	@Column(name = "hosp_name")
	private String hospName;
	
	@Column(name = "hosp_spel_code")
	private String hospSpelCode;
	
	@Column(name = "hosp_status")
	private Integer hospStatus;
	
	@Column(name = "del_comp_code")
	private String delCompCode;
	
	@Column(name = "del_comp_name")
	private String delCompName;
	
	@Column(name = "del_comp_name_spel")
	private String delCompNameSpel;
	
	@Column(name = "del_comp_status")
	private Integer delCompStatus;

	@Column(name = "bur_audit_status")
	private Integer burAuditStatus;//卫生局核实状态0未核实1核实缺货2核实未缺货

	@Column(name = "bur_audit_remark")
	private String burAuditRemark;//卫生局核实备注

	@Column(name = "bur_audit_datetime")
	private Date burAuditDatetime;//卫生局核实日期

	@Column(name = "cet_audit_status")	
	private Integer cetAuditStatus;//中心核实状态0未核实1核实缺货2核实未缺货

	@Column(name = "cet_audit_remark")
	private String cetAuditRemark;//中心核实备注

	@Column(name = "cet_audit_datetime")
	private Date cetAuditDatetime;//中心核实日期

	@Column(name = "feedback")
	private String feedback; //反馈信息

	@Column(name = "is_readed")
	private Integer isReaded;//阅读状态0未阅读1已阅读

	@Column(name = "is_sub_paper")
	private Integer isSubPaper ;//是否递交纸质资料0未提交1已提交

	@Column(name = "upd_datetime")
	private Date updDatetime;

	@Column(name = "upd_user")
	private String updUser;
	
	@Column(name="count" )
	private Integer count;
	
	
	@Transient
	private String userId;
	
	public String getShortageId() {
		return shortageId;
	}

	public void setShortageId(String shortageId) {
		this.shortageId = shortageId;
	}

	public String getQualityspecCode() {
		return qualityspecCode;
	}

	public void setQualityspecCode(String qualityspecCode) {
		this.qualityspecCode = qualityspecCode;
	}

	public Integer getIsLongterm() {
		return isLongterm;
	}

	public void setIsLongterm(Integer isLongterm) {
		this.isLongterm = isLongterm;
	}
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	public Date getStartDatetime() {
		return startDatetime;
	}

	public void setStartDatetime(Date startDatetime) {
		this.startDatetime = startDatetime;
	}
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	public Date getEndDatetime() {
		return endDatetime;
	}

	public void setEndDatetime(Date endDatetime) {
		this.endDatetime = endDatetime;
	}

	public String getShortageReason() {
		return shortageReason;
	}

	public void setShortageReason(String shortageReason) {
		this.shortageReason = shortageReason;
	}

	public Date getSubmitDatetime() {
		return submitDatetime;
	}

	public void setSubmitDatetime(Date submitDatetime) {
		this.submitDatetime = submitDatetime;
	}

	public Integer getSubmitStatus() {
		return submitStatus;
	}

	public void setSubmitStatus(Integer submitStatus) {
		this.submitStatus = submitStatus;
	}

	public String getCancelRemark() {
		return cancelRemark;
	}

	public void setCancelRemark(String cancelRemark) {
		this.cancelRemark = cancelRemark;
	}

	public String getHospCode() {
		return hospCode;
	}

	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}

	public String getHospName() {
		return hospName;
	}

	public void setHospName(String hospName) {
		this.hospName = hospName;
	}

	public String getHospSpelCode() {
		return hospSpelCode;
	}

	public void setHospSpelCode(String hospSpelCode) {
		this.hospSpelCode = hospSpelCode;
	}

	public Integer getHospStatus() {
		return hospStatus;
	}

	public void setHospStatus(Integer hospStatus) {
		this.hospStatus = hospStatus;
	}

	public String getDelCompCode() {
		return delCompCode;
	}

	public void setDelCompCode(String delCompCode) {
		this.delCompCode = delCompCode;
	}

	public String getDelCompName() {
		return delCompName;
	}

	public void setDelCompName(String delCompName) {
		this.delCompName = delCompName;
	}

	public String getDelCompNameSpel() {
		return delCompNameSpel;
	}

	public void setDelCompNameSpel(String delCompNameSpel) {
		this.delCompNameSpel = delCompNameSpel;
	}

	public Integer getDelCompStatus() {
		return delCompStatus;
	}

	public void setDelCompStatus(Integer delCompStatus) {
		this.delCompStatus = delCompStatus;
	}

	public Integer getBurAuditStatus() {
		return burAuditStatus;
	}

	public void setBurAuditStatus(Integer burAuditStatus) {
		this.burAuditStatus = burAuditStatus;
	}

	public String getBurAuditRemark() {
		return burAuditRemark;
	}

	public void setBurAuditRemark(String burAuditRemark) {
		this.burAuditRemark = burAuditRemark;
	}

	public Date getBurAuditDatetime() {
		return burAuditDatetime;
	}

	public void setBurAuditDatetime(Date burAuditDatetime) {
		this.burAuditDatetime = burAuditDatetime;
	}

	public Integer getCetAuditStatus() {
		return cetAuditStatus;
	}

	public void setCetAuditStatus(Integer cetAuditStatus) {
		this.cetAuditStatus = cetAuditStatus;
	}

	public String getCetAuditRemark() {
		return cetAuditRemark;
	}

	public void setCetAuditRemark(String cetAuditRemark) {
		this.cetAuditRemark = cetAuditRemark;
	}

	public Date getCetAuditDatetime() {
		return cetAuditDatetime;
	}

	public void setCetAuditDatetime(Date cetAuditDatetime) {
		this.cetAuditDatetime = cetAuditDatetime;
	}

	public String getFeedback() {
		return feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	public Integer getIsReaded() {
		return isReaded;
	}

	public void setIsReaded(Integer isReaded) {
		this.isReaded = isReaded;
	}

	public Integer getIsSubPaper() {
		return isSubPaper;
	}

	public void setIsSubPaper(Integer isSubPaper) {
		this.isSubPaper = isSubPaper;
	}

	public Date getUpdDatetime() {
		return updDatetime;
	}

	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}

	public String getUpdUser() {
		return updUser;
	}

	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
	

	
}
